import http from '@/utils/http.js';

export default {
    listAllMyBook: function (params) {
        return http.get('/book/user/listAllMyBook', {
            params
        });
    },
    getBookReadingInfo: function (params) {
        return http.get('/book/user/info', {
            params
        });
    },
    recordBookReading: function (data) {
        return http.post('/book/user/record', data);
    },


    addNote: function (data){
        return http.post('/note/add', data);
    },
    listAllBookNotes: function (params) {
        return http.get('/note/book', {
            params
        });
    },
}
